<?php
/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE_AFL.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@magentocommerce.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magentocommerce.com for more information.
 *
 * @category    design
 * @package     base_default
 * @copyright   Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
 * @license     http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */
/**
 * @var Mage_Page_Block_Html_Header $this
 */
?>
<div class="header-container">
    <div class="social-bar-header">
        <div class="social-bar">
            <a target="_blank" href="http://www.facebook.com/pages/baloomecom/191818644181051"><img src="<?php echo $this->getUrl('') ?>/skin/frontend/default/baloome/images/icon_facebook.png" /></a>
            <a target="_blank" href="http://twitter.com/baloomecom"><img src="<?php echo $this->getUrl('') ?>/skin/frontend/default/baloome/images/icon_twitter.png" /></a>
            <a target="_blank" href="http://www.youtube.com/baloomecom"><img src="<?php echo $this->getUrl('') ?>/skin/frontend/default/baloome/images/icon_youtube.png" /></a>
        </div>
    </div>
    <div class="header">
        <?php if ($this->getIsHomePage()):?>
        <h1 class="logo"><strong><?php echo $this->getLogoAlt() ?></strong><a href="<?php echo $this->getUrl('') ?>" title="<?php echo $this->getLogoAlt() ?>" class="logo"><img src="<?php echo $this->getLogoSrc() ?>" alt="<?php echo $this->getLogoAlt() ?>" /></a></h1>
        <?php else:?>
        <a href="<?php echo $this->getUrl('') ?>" title="<?php echo $this->getLogoAlt() ?>" class="logo"><strong><?php echo $this->getLogoAlt() ?></strong><img src="<?php echo $this->getLogoSrc() ?>" alt="<?php echo $this->getLogoAlt() ?>" /></a>
        <?php endif?>
        <div class="quick-access">
            <?php echo $this->getChildHtml('topSearch') ?>
            <?php echo $this->getChildHtml('topLinks') ?>
            <?php // echo $this->getChildHtml('store_language') ?>
            <div class="shopping-quick-access">
                <div class="sqa-left">
                    <img src="<?php echo $this->getUrl('') ?>/skin/frontend/default/baloome/images/baloome_cart.png" />
                </div>
                <div class="sqa-right">
                    <div class="sqa-right-top">
                    <?php
                        $count = $this->helper('checkout/cart')->getSummaryCount();
                        if( $count == 1 ) {
                            $text = $this->__('%s item', $count);
                        } elseif( $count > 0) {
                            $text = $this->__('%s items', $count);
                        } elseif($count == 0) {
                            $text = $this->__('%s items', 0);
                        }
                        echo $text;
                    ?>
                    </div>
                    <div class="sqa-right-down">
                        <a href="<?php echo $this->getUrl('checkout/cart') ?>"><?php echo $this->__('View Cart') ?></a>
                    </div>
                </div>
            </div>
        </div>
        <?php echo $this->getChildHtml('topContainer'); ?>
        <div id="header-banner>
            <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540001" width="930px" height="96px" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0">
                <param name="movie" value="<?php echo $this->getUrl() . "media/banner/home.swf"  ?>" />
                <param name="allowScriptAccess" value="sameDomain" />
                <param name="allowFullScreen" value="false" />
                <embed src="<?php echo $this->getUrl() . "media/banner/home.swf" ?>" width="930px" height="96px" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" ></embed>
            </object>
        </div>
        <?php echo $this->getChildHtml('topMenu') ?>
    </div>
</div>